<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                xmlns:h="http://java.sun.com/jsf/html">

    <p:dialog header="Adauga/Editeaza eticheta de sistem" widgetVar="add_system_tag_WV" dynamic="true" minHeight="300"
              width="600" modal="true">

        <h:form id="create_system_tag_form">
            <h:panelGrid columns="2" columnClasses="column-1, column-200" styleClass="form-elements">
                <p:outputLabel for="system_tag_name" value="Nume:"/>
                <p:inputText id="system_tag_name" value="#{systemTagAdministrationBean.selectedSystemTag.name}"
                             disabled="#{!systemTagAdministrationBean.noSystemTagType()}"/>

                <p:outputLabel for="system_tag_description" value="Descriere:"/>
                <p:inputTextarea id="system_tag_description"
                                 value="#{systemTagAdministrationBean.selectedSystemTag.description}"
                                 maxlength="150"/>

                <p:outputLabel for="system_tag_value" value="Valoare:"/>
                <p:inputTextarea id="system_tag_value" value="#{systemTagAdministrationBean.selectedSystemTag.value}"
                                 disabled="#{!systemTagAdministrationBean.noSystemTagType()}"/>
            </h:panelGrid>

            <p:outputPanel layout="block" style="border-top: 1px solid #A8A8A8; padding: 5px;">
                <p:commandButton icon="ui-icon-disk" value="Salveaza" update="@form :system_tags_content:system_tags_form"
                                 actionListener="#{systemTagAdministrationBean.saveSystemTag}"
                                 oncomplete="if (args &amp;&amp; !args.validationFailed) add_system_tag_WV.hide()"/>
                <p:commandButton value="Renunta" onclick="PF('add_system_tag_WV').hide();" process="@none"/>
            </p:outputPanel>
        </h:form>
    </p:dialog>


</ui:composition>
